package org.music.generate.model;

import java.util.List;

/**
 * Created by mingdongc on 2017/3/11.
 */
public class GenerateParamData {
    private List<ColumnMetaData> columneMetaList;
    private TableMetaData tableMetaData;

    // packageName 包名。
    private String moduleName;			// 模块名
    private String classAuthor;		// 类作者，例：chenmd
    private String className;			// 类名，例：user
    private String tableName; //该类对应的表名称
    private String functionName;			// 功能名，例：用户（简单的功能描述）

    // 是否启用生成工具
    private Boolean isEnable;
    private String entityId;			// 实例id
    private String tableId;			// 表主键id
    private boolean isGenerateService;
    private boolean isGenerateController;
    private boolean isGenerateView;

    public GenerateParamData(List<ColumnMetaData> columneMetaList, String moduleName, String classAuthor, String className, String tableName, String functionName, Boolean isEnable, String entityId, String tableId, boolean isGenerateService, boolean isGenerateController, boolean isGenerateView) {
        this.columneMetaList = columneMetaList;
        this.moduleName = moduleName;
        this.classAuthor = classAuthor;
        this.className = className;
        this.tableName = tableName;
        this.functionName = functionName;
        this.isEnable = isEnable;
        this.entityId = entityId;
        this.tableId = tableId;
        this.isGenerateService = isGenerateService;
        this.isGenerateController = isGenerateController;
        this.isGenerateView = isGenerateView;
        this.tableMetaData=new TableMetaData(columneMetaList);
    }

    public List<ColumnMetaData> getColumneMetaList() {
        return columneMetaList;
    }

    public void setColumneMetaList(List<ColumnMetaData> columneMetaList) {
        this.columneMetaList = columneMetaList;
    }

    public TableMetaData getTableMetaData() {
        return tableMetaData;
    }

    public void setTableMetaData(TableMetaData tableMetaData) {
        this.tableMetaData = tableMetaData;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getClassAuthor() {
        return classAuthor;
    }

    public void setClassAuthor(String classAuthor) {
        this.classAuthor = classAuthor;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public void setEnable(Boolean enable) {
        isEnable = enable;
    }

    public Boolean getEnable() {
        return isEnable;
    }

    public String getEntityId() {
        return entityId;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId;
    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public boolean isGenerateService() {
        return isGenerateService;
    }

    public void setGenerateService(boolean generateService) {
        isGenerateService = generateService;
    }

    public boolean isGenerateController() {
        return isGenerateController;
    }

    public void setGenerateController(boolean generateController) {
        isGenerateController = generateController;
    }

    public boolean isGenerateView() {
        return isGenerateView;
    }

    public void setGenerateView(boolean generateView) {
        isGenerateView = generateView;
    }
}
